package com.csun.cmny.provider.model.dto.dept;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2018-12-14 09:07
 * @Description:
 */
@Data
@ApiModel(value = "部门新增Dto")
public class UacEditDeptDto implements Serializable {

    private static final long serialVersionUID = -8618881656761856624L;

    /**
     * 部门Id
     */
    @ApiModelProperty(value = "部门Id", required = true)
    private Long id;

    /**
     * 部门的父Id
     */
    @ApiModelProperty(value = "部门的父Id", required = true)
    @NotBlank(message = "上级部门不能为空")
    private Long pid;

    /**
     * 部门名称
     */
    @ApiModelProperty(value = "部门名称", required = true)
    @NotBlank(message = "部门名称不能为空")
    private String deptName;

    /**
     * 部门描述信息
     */
    @ApiModelProperty(value = "部门描述信息")
    private String remark;

}
